@import "../common/mixin";

/* 导航顶部 */
.ng-top-toolbar {

    height: 36px;
    background: #f5f5f5;
    line-height: 35px;
    width: 100%;
    border-bottom: 1px solid #eee;
}

.ng-toolbar-con {
    margin: 0;
    width: 1190px;
    margin: 0 auto;
    color: #666;
    position: relative;
}

/* 导航left */
.ng-toolbar-left {
    display: flex;
    float: left;
}

/* 二级菜单 */
.ng-toolbar-left .top-menu {
    background-color: #fff;
    width: 988px;
    height: 170px;
    position: absolute;
    left: 0px;
    padding-left: 10px;
    display: none;
    border: 1px solid #ddd;
}

.ng-toolbar-left li:nth-child(2) .top-menu {
    background-color: #fff;
    width: 167px;
    height: 100px;
    position: absolute;
    left: 68px;
    padding-left: 10px;
    display: none;
}

.ng-toolbar-left li:nth-child(3) .top-menu {
    background-color: #fff;
    width: 167px;
    height: 100px;
    position: absolute;
    left: 68px;
    padding-left: 10px;
    display: none;
}

.ng-toolbar-left li.active {
    background: #fff;
    z-index: 999;
}

.ng-toolbar-left li.active i::before {
    transform: rotate(180deg);
}

.ng-toolbar-left li i::before {
    transition: all 0.2s;
    display: inline-block;
}

.ng-toolbar-left li {
    padding: 0 10px;
}

.ng-toolbar-left li .iconfont {
    position: relative;
    top: 2px;
}

/* 导航right */
.ng-toolbar-right {
    float: left;
    padding-left: 290px;
}


/* 内容部分 */
.content-container {
    width: 100%;
}

/* logo */
.logo-bar {
    width: 100%;
    background: #fff;
}

.logo-sa {
    width: 1190px;
    height: 110px;
    @include block-center;
    position: relative;

    .ng-search {
        position: absolute;
        height: 100px;
        width: 600px;
        top: 0;
        left: 370px;
        // background: #ddd;

        .g-search {
            display: inline;
            // position: relative;
            float: left;
            margin: 30px 0 0 0;
            z-index: 6790;
            font-family: 'Microsoft YaHei';
            background: #fff;
            height: 63px;
            width: 550px;


            .search-box {
                float: left;
                width: 400px;
                height: 40px;
                padding: 0 0 0 28px;
                border: 2px solid #ff8000;
                border-right: 0;
                position: relative;
                border-radius: 12px 0 0 12px;

                i {
                    position: absolute;
                    left: 10px;
                    top: 9px;
                }

                .search-bar {
                    ul {

                        // width: 100%;
                        // list-style: none;
                        // padding: 0;
                        // margin: 0;
                        // float: left;
                        // height: 216px;
                        // width: 538px;
                        // background: #ffffff;
                        // z-index: 999;
                        // position: absolute;
                        // top: 40px;
                        // left: 0;
                        // overflow: hidden;
                        // border: 1px solid #e4e4e4;
                        // display: none;
                        li {
                            z-index: 999;
                            width: 538px;
                            background: #ffffff;
                            display: block;
                            clear: both;
                            margin: 0;
                            cursor: default;
                            height: 24px;
                            line-height: 24px;
                            padding: 0 10px;
                            text-align: left;
                            font-weight: bold;
                            color: #666;
                            overflow: hidden;
                            position: relative;
                            left: -30px;
                        }
                    }

                    #search_keyword {
                        font-size: 12px;
                        padding: 9px 10px 9px 0;
                        height: 18px;
                        width: 390px;
                        line-height: 18px;
                        outline: none;
                        margin-top: 0;
                        border: 0;
                        background: #FFF;
                    }

                    #search_submit {
                        cursor: pointer;
                        float: right;
                        width: 120px;
                        height: 44px;
                        position: absolute;
                        top: -2px;
                        font-size: 20px;
                        font-family: "MicroSoft YaHei";
                        font-weight: bold;
                        border-radius: 0 12px 12px 0;
                        color: #FFF;
                        border: 0;
                        background: #ff8000;
                    }
                }
            }

            ul {
                width: 540px;
                height: 18px;
                // background: #ddd;
                position: absolute;
                top: 80px;

                li {
                    float: left;

                    a {
                        vertical-align: middle;
                        text-align: center;
                        text-decoration: none;
                        color: #000;
                        font-family: 'Microsoft Yahei', tahoma, arial, 'Hiragino Sans GB';
                        font-size: 12px;
                    }

                    em {
                        display: inline-block;
                        vertical-align: middle;
                        font-size: 12px;
                        color: #dddddd;
                        padding: 0 5px 0 5px;
                    }
                }
            }
        }
    }
}

.logo-sa h1 {
    width: 1190px;
    height: 110px;
    margin: 0 auto;
}

.logo-sa img {
    width: 190px;
    height: 90px;
}

// 分类横条
.sort-bar {
    background: #fff;
}

.sort-main {
    min-width: 1190px;
    width: 1190px;
    height: 38px;
    position: relative;
    // background: #fff;

    @include block-center;

    .sort-left-box {
        position: absolute;
        display: block;
        width: 173px;
        padding-left: 27px;
        left: -2px;
        top: 0;
        line-height: 38px;
        background: #ff8000;
        color: #fff;
        font-size: 13px;
        font-weight: bold;
        border-radius: 12px 12px 0 0;
        text-decoration: none;

        i {
            position: absolute;
            display: block;
            width: 14px;
            height: 14px;
            top: 14px;
            left: 12px;
            background: url(//res.suning.cn/project/cmsWeb/suning/homepage/v8/css/images/index.png?v=2021062901) 0px 0px;
        }
    }

    .sort-right-box {
        float: right;
        padding-right: 7px;

        img {
            height: 38px;
        }
    }

    .sort-center-nav {
        height: 38px;

        ul {
            @include block-center;
            width: 794px;
        }
    }

    .sort-center-nav ul li {
        float: left;
        position: relative;
        font-weight: bold;
        padding: 0 12px 0 13px;

        a {
            font-size: 15px;
            color: rgb(51, 51, 51);
            text-decoration: none;
            font-family: 'Microsoft Yahei', tahoma, arial, 'Hiragino Sans GB';
            line-height: 38px;

            img {
                height: 38px;
            }
        }

    }

    .sort-list-wrapper {
        width: 1190px;
        height: 476px;

        .sort-list-left-box {
            width: 200px;
            height: 476px;
            background: #fff;
            position: absolute;
            left: -2px;
            top: 38px;

            .sort-hover {
                position: absolute;
                width: 794px;
                height: 476px;
                left: 200px;
                top: 0;
                background: #f3f3f3;
                overflow: hidden;
                z-index: 999;
                display: none;

                li {
                    float: left;
                    padding-right: 10px;
                    margin-top: 20px;
                    text-indent: 20px;
                }
            }

            .sort-hover.active {
                display: block;
            }

            .sort-list li {
                position: relative;
                width: 166px;
                overflow: hidden;
                padding: 0 6px 0 28px;
                height: 31px;
                line-height: 29px;

                &:hover {
                    background: #f3f3f3;
                }

                img {
                    position: absolute;
                    width: 16px;
                    height: 16px;
                    left: 6px;
                    top: 7px;
                }

                a {
                    display: inline-block;
                    vertical-align: middle;
                    color: #000;
                    font-size: 14px;
                    text-decoration: none;
                    letter-spacing: 1px;
                }

                em {
                    font-size: 14px;
                    vertical-align: middle;
                    height: 12px;
                    width: 1px;
                    margin: 0 1px;
                }
            }

        }

        .sort-list-right-box {
            position: absolute;
            background: #fff;
            top: 38px;
            right: 7px;
            width: 190.97px;
            height: 476px;

            .top-box {
                overflow: hidden;
                position: relative;
                width: 190.97px;
                height: 225px;
                // background: red;

                .user-img {
                    position: absolute;
                    width: 48px;
                    height: 48px;
                    left: 10px;
                    top: 10px;
                    background: url(//res.suning.cn/project/cmsWeb/suning/homepage/v8/css/images/tool-logo.png?v=2021062901);
                    z-index: 1;
                    border: 1px solid #f7f7f7;
                    border-radius: 50%;
                    background-size: 100% 100%;
                }

                .login {
                    float: left;
                    margin-top: 15px;
                    margin-left: 66px;
                    width: 125px;
                    height: 38px;
                    font-size: 12px;
                    color: #333;

                    p {
                        padding-bottom: 8px;
                    }
                }
            }

            .bot-box {
                position: relative;
                height: 250px;
                width: 190.97px;
                border-top: 1px solid #f2f2f2;
                // background: #fff;

                ul {
                    display: flex;
                    justify-content: space-between;
                    flex-wrap: wrap;
                    height: 250px;
                    width: 190.97px;
                    overflow: hidden;

                    li {
                        width: 62px;
                        height: 85px;
                        border-width: 0 1px 1px 0;
                        border-style: solid;
                        border-color: #f2f2f2;

                        &:nth-child(3n) {
                            border-right: 0;
                        }
                    }
                }

            }
        }
    }
}